# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-testtools
_pkgname=testtools
pkgver=2.3.0
pkgrel=6
pkgdesc='Extensions to the Python standard library unit testing framework.'
url='https://pypi.org/project/testtools/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-pbr' 'python2-extras' 'python2-pyrsistent'
         'python2-mimeparse' 'python2-traceback2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('558fe6a1bdce7215f9f6f178f469a2b76948dc7ff0ce27400482a16683474edb81d9bf90ae48b6fcb8df9eb70759341b694aa162ed3d9d4abd372981cdcd8a64')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

